{% extends "base.html" %}

{% block stylesheet %}
{% endblock %}

{% block note %}{% endblock %}

{% block header_extra %}{% endblock %}

{% block main %}
            <div class="column-2-unit">
            	<div class="box special">
                    <h2>标签：<strong>{{ t.name }}</strong></h2>
                </div>
                <div class="list qna">
                    <h2>相关问答</h2>
                    <div class="content">
                        <ul>
                            {% load short %}
                            {% for q in qs %}
                            <li>
                                <h3><a href="/view/{{ q.id }}/"><span class="who">{{ q.writername }} 问：</span><span class="what">{{ q.title }} <span class="id">#{{ q.id }}</span></span></a></h3>
                                <p><a href="/view/{{ q.id }}/"><span class="who">{{ q.a.writer }} 答：</span>{{ q.a.content|short:200 }}</a></p>
                            </li>
                            {% endfor %}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="column-sep"></div>
            <div class="column-1-unit">
            	<div class="list special">
                    <h2>标签</h2>
                    <div class="content">
                        <ul id="tag-list">
			    {% for t in ts %}
			    <li>
				<a href="/tag/{{ t.name }}/">
				<h3>{{ t.name }} <span class="statistic">{{ t.qcount }} 个问答{% if t.ccount > 0 %} • {{ t.ccount }} 篇感悟{% endif %}</span></h3>
				</a>
				<div class="clear"></div>
			    </li>
			    {% endfor %}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="column-sep"></div>
            <div class="column-1-unit">
{% include "module-q-entrance.html" %}
{% include "module-shortcut.html" %}
{% include "module-search.html" %}
            </div>
{% endblock %}
